<template>
  <div>
    <Father :name="name" :title="title" :method1="method1" :method2="method2" />
  </div>
</template>

<script>
import Father from './father.vue'
export default {
  name: "PropsDemo",
  components: { Father },
  data() {
    return {
      name: '我是v-bind="$attrs"',
      title: '我是v-on="$listeners"'
    }
  },
  methods: {
    method1() {
      console.log('我是方法1')
    },
    method2() {
      console.log('我是方法2')
    }
  }
};
</script>

<style scoped></style>
